package com.dudsbury.database;


public class MyItem {

	private String itemID;
	private String itemName;
	private String itemDescription;
	private String itemType;
	private float price;
	
	//Giving parameters constants
	private static final int ITEM_ID = 0;
	private static final int ITEM_NAME = 1;
	private static final int ITEM_DESCRIPTION = 2;
	private static final int ITEM_TYPE = 3;
	private static final int ITEM_PRICE= 4;
	
	//Default constructor method
	public MyItem(){
		
	}
	
	//Constructor method with an array
	public MyItem(String[] data){
		this.itemID=data[ITEM_ID];
		this.itemName=data[ITEM_NAME];
		this.itemDescription=data[ITEM_DESCRIPTION];
		this.itemType=data[ITEM_TYPE];
		this.price=(Float.valueOf(data[ITEM_PRICE]));
		
	}

	public String getItemID() {
		return itemID;
	}

	public void setItemID(String itemID) {
		this.itemID = itemID;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemDescription() {
		return itemDescription;
	}

	public void setItemDescription(String itemDescription) {
		this.itemDescription = itemDescription;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}
	
	
	

	
}
